﻿namespace DaffodilsNumber
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int i, j;
            for (i = 100; i <= 999; i++)
            {
                int x = i % 10;
                int y = i / 10 % 10;
                int z = i / 100;
                if (i == Math.Pow(x, 3) + Math.Pow(y, 3) + Math.Pow(z, 3))
                {
                    Console.WriteLine(i);
                }
            }
            Console.ReadLine();
        }
    }
}
